import QtQuick 2.6
import Qt.labs.controls 1.0
import QtQuick.Layouts 1.1
import "../lib"

Navigator {
    id: nav
    title: "充值记录"
    submitted: false

    contentHeight: Math.max(iHEIGHT * 12, height)

    ListView {
        id: view
        anchors.fill: parent
        model: ListModel {
            ListElement {
                description: "直充"
                money: 50.0
            }
            ListElement {
                description: "直充"
                money: 50.0
            }
        }
        delegate: Rectangle {
            width: view.width
            height: iHEIGHT * 1.3

            RowLayout {
                anchors.fill: parent
                anchors.margins: iWIDTH
                Label{
                    text: model.description
                }

                Label {
                    text: "￥" + model.money
                }
            }

            Rectangle {
                width: parent.width
                height: 1
                color: "gainsboro"
                anchors.bottom: parent.bottom
                visible: index != view.count - 1
            }
        }
    }
}
